﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("productTokenMakerService", function (httpService) {
        var methods = {
            gets: function (params) {
                return httpService.get("/admin/productTokenMaker/gets", params);
            },
            get: function (params) {
                return httpService.get("/admin/productTokenMaker/get", params);
            },
            "getproducts": function (params) {
                return httpService.get("/admin/productTokenMaker/GetProducts", params);
            },
            "addProductTokenMaker": function (productId) {
                return httpService.post("/admin/productTokenMaker/addProductTokenMaker", { productId: productId });
            },
            "update": function (params) {
                return httpService.upload("/admin/productTokenMaker/update", params);
            },
            "delete": function (product_activity_id) {
                return httpService.delete("/admin/productTokenMaker/DeleteProduct", { product_activity_id: product_activity_id });
            },
        }
        return methods;
    });
});